/**
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
define(["ojs/ojcore","jquery","ojs/ojcomponentcore","ojs/ojtime-base","ojs/internal-deps/dvt/DvtTimeline"],function(a,g,b,c,d){a.Ra("oj.ojTimeline",g.oj.dvtTimeComponent,{widgetEventPrefix:"oj",options:{viewportChange:null},Dg:function(a,b,c){return d.Timeline.newInstance(a,b,c)},Hk:function(a){var b=a.subId;"oj-timeline-item"==b&&(b="timelineItem["+a.seriesIndex+"]["+a.itemIndex+"]");return b},Oh:function(a){var b={};0==a.indexOf("timelineItem")&&(a=this.Qm(a),b.subId="oj-timeline-item",b.seriesIndex=
a[0],b.itemIndex=a[1]);return b},KH:function(){this._super();this.options.styleDefaults||(this.options.styleDefaults={});this.options.styleDefaults.series||(this.options.styleDefaults.series={});if(!this.options.styleDefaults.series.colors){var b=new a.ug;this.options.styleDefaults.series.colors=b.Kn()}},Jf:function(){var a=this._super();a.push("oj-timeline");return a},Ej:function(){var a=this._super();a["oj-timeline"]={path:"styleDefaults/borderColor",property:"border-color"};a["oj-timeline-item"]=
[{path:"styleDefaults/item/borderColor",property:"border-color"},{path:"styleDefaults/item/backgroundColor",property:"background-color"}];a["oj-timeline-item oj-hover"]=[{path:"styleDefaults/item/hoverBorderColor",property:"border-color"},{path:"styleDefaults/item/hoverBackgroundColor",property:"background-color"}];a["oj-timeline-item oj-selected"]=[{path:"styleDefaults/item/selectedBorderColor",property:"border-color"},{path:"styleDefaults/item/selectedBackgroundColor",property:"background-color"}];
a["oj-timeline-item-description"]={path:"styleDefaults/item/descriptionStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-item-title"]={path:"styleDefaults/item/titleStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-major-axis-label"]={path:"styleDefaults/majorAxis/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-major-axis-separator"]={path:"styleDefaults/majorAxis/separatorColor",property:"color"};a["oj-timeline-minor-axis"]=[{path:"styleDefaults/minorAxis/backgroundColor",property:"background-color"},
{path:"styleDefaults/minorAxis/borderColor",property:"border-color"}];a["oj-timeline-minor-axis-label"]={path:"styleDefaults/minorAxis/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-minor-axis-separator"]={path:"styleDefaults/minorAxis/separatorColor",property:"color"};a["oj-timeline-overview"]={path:"styleDefaults/overview/backgroundColor",property:"background-color"};a["oj-timeline-overview-label"]={path:"styleDefaults/overview/labelStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-overview-window"]=
[{path:"styleDefaults/overview/window/backgroundColor",property:"background-color"},{path:"styleDefaults/overview/window/borderColor",property:"border-color"}];a["oj-timeline-reference-object"]={path:"styleDefaults/referenceObject/color",property:"color"};a["oj-timeline-series"]={path:"styleDefaults/series/backgroundColor",property:"background-color"};a["oj-timeline-series-empty-text"]={path:"styleDefaults/series/emptyTextStyle",property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-series-label"]={path:"styleDefaults/series/labelStyle",
property:"CSS_TEXT_PROPERTIES"};a["oj-timeline-zoomin-icon"]=[{path:"_resources/zoomIn",property:"CSS_URL"},{path:"_resources/zoomIn_bgc",property:"background-color"},{path:"_resources/zoomIn_bc",property:"border-color"}];a["oj-timeline-zoomin-icon oj-hover"]=[{path:"_resources/zoomIn_h",property:"CSS_URL"},{path:"_resources/zoomIn_h_bgc",property:"background-color"},{path:"_resources/zoomIn_h_bc",property:"border-color"}];a["oj-timeline-zoomin-icon oj-active"]=[{path:"_resources/zoomIn_a",property:"CSS_URL"},
{path:"_resources/zoomIn_a_bgc",property:"background-color"},{path:"_resources/zoomIn_a_bc",property:"border-color"}];a["oj-timeline-zoomin-icon oj-disabled"]=[{path:"_resources/zoomIn_d",property:"CSS_URL"},{path:"_resources/zoomIn_d_bgc",property:"background-color"},{path:"_resources/zoomIn_d_bc",property:"border-color"}];a["oj-timeline-zoomout-icon"]=[{path:"_resources/zoomOut",property:"CSS_URL"},{path:"_resources/zoomOut_bgc",property:"background-color"},{path:"_resources/zoomOut_bc",property:"border-color"}];
a["oj-timeline-zoomout-icon oj-hover"]=[{path:"_resources/zoomOut_h",property:"CSS_URL"},{path:"_resources/zoomOut_h_bgc",property:"background-color"},{path:"_resources/zoomOut_h_bc",property:"border-color"}];a["oj-timeline-zoomout-icon oj-active"]=[{path:"_resources/zoomOut_a",property:"CSS_URL"},{path:"_resources/zoomOut_a_bgc",property:"background-color"},{path:"_resources/zoomOut_a_bc",property:"border-color"}];a["oj-timeline-zoomout-icon oj-disabled"]=[{path:"_resources/zoomOut_d",property:"CSS_URL"},
{path:"_resources/zoomOut_d_bgc",property:"background-color"},{path:"_resources/zoomOut_d_bc",property:"border-color"}];a["oj-timeline-overview-window-handle-horizontal"]={path:"_resources/overviewHandleHor",property:"CSS_URL"};a["oj-timeline-overview-window-handle-vertical"]={path:"_resources/overviewHandleVert",property:"CSS_URL"};return a},Ti:function(){var a=this.options.translations,b=this._super();b["DvtUtilBundle.TIMELINE"]=a.componentName;b["DvtUtilBundle.TIMELINE_SERIES"]=a.labelSeries;b["DvtUtilBundle.ZOOM_IN"]=
a.tooltipZoomIn;b["DvtUtilBundle.ZOOM_OUT"]=a.tooltipZoomOut;return b},Tm:function(){this._super();var b=this.options._resources,c=b.converter,d=a.za.dj("datetime"),g=d.createConverter({month:"short"}),d=d.createConverter({year:"2-digit"});b.converterVert={seconds:c.seconds,minutes:c.minutes,hours:c.hours,days:c.days,weeks:c.weeks,months:g,quarters:g,years:d};b.firstDayOfWeek=a.$a.uF()},Ik:function(){return{root:["series"]}}});a.Components.Xa("ojTimeline","dvtBaseComponent",{properties:{animationOnDataChange:{type:"string"},
animationOnDisplay:{type:"string"},end:{type:"string|number"},majorAxis:{type:"object"},minorAxis:{type:"object"},orientation:{type:"string"},overview:{type:"object"},referenceObjects:{type:"Array\x3cobject\x3e"},selection:{type:"Array\x3cstring\x3e"},selectionMode:{type:"string"},series:{type:"Array\x3cobject\x3e"},start:{type:"string|number"},styleDefaults:{type:"object"},viewportEnd:{type:"string|number"},viewportStart:{type:"string|number"}},methods:{getContextByNode:{}},extension:{_widgetName:"ojTimeline"}});
a.Components.register("oj-timeline",a.Components.getMetadata("ojTimeline"))});